package com.miplus.ccrm.admin.service;

import com.miplus.ccrm.admin.controller.vo.NamesResVo;
import com.miplus.ccrm.admin.controller.vo.PermEditReqVo;
import com.miplus.ccrm.admin.controller.vo.PermissionResVo;
import com.miplus.ccrm.admin.pojo.SysPermission;
import com.baomidou.mybatisplus.extension.service.IService;
import com.miplus.ccrm.common.CmdResVo;

import java.util.List;

/**
* @author pc
* @description 针对表【sys_permission(系统权限表)】的数据库操作Service
* @createDate 2024-03-06 15:53:30
*/
public interface SysPermissionService extends IService<SysPermission> {

    List<PermissionResVo>  permissionTree();

    List<PermissionResVo> activePermissionTree();

    List<NamesResVo> activePermissionList(String parentid);

    CmdResVo updatePermission(PermEditReqVo paras);

    CmdResVo insertPermission(PermEditReqVo paras);

    CmdResVo deletePermission(String permid);

    CmdResVo updatePermissionStatus(String permid,String status);
}
